﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TsCore;


namespace TsWeb.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
            if (!Page.IsPostBack)
            {
                TsSystem.Instance.IntializeDefaultUser();
            }
        }

        protected void LoginUser_LoggedIn(object sender, EventArgs e)
        {
            TsSystem.Instance.LogSuccesLogin(LoginUser.UserName);
            
        
           

        }

        protected void LoginUser_LoginError(object sender, EventArgs e)
        {
            TsSystem.Instance.LogFailedLogin(LoginUser.UserName);
        }
    }
}
